<%@page import="com.google.appengine.api.blobstore.BlobstoreService"%>
<%@page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
 import="org.windblog.core.*" pageEncoding="UTF-8"%>
<%

	try {
		if (WBQuery.isHome()) {
			RequestDispatcher rd = application.getRequestDispatcher(GeneralTemplate.getIndex());
			rd.forward(request, response);
		} else if (WBQuery.isSingle()) {
			RequestDispatcher rd = application
					.getRequestDispatcher(GeneralTemplate.getSingle());
			rd.forward(request, response);
		} else if (WBQuery.isMonth()) {
			RequestDispatcher rd = application
			.getRequestDispatcher(GeneralTemplate.getArchive());
			rd.forward(request, response);
		} else if (WBQuery.isCategory()) {
			RequestDispatcher rd = application
			.getRequestDispatcher(GeneralTemplate.getArchive());
			rd.forward(request, response);
		}else if(WBQuery.isPage()){
			RequestDispatcher rd = application
			.getRequestDispatcher(GeneralTemplate.getPage());
			rd.forward(request, response);
		}
	} catch (Exception ex) {
		ex.printStackTrace();
	}
	
%>
